#ifndef FIRSTSCREEN_H
#define FIRSTSCREEN_H

#include <QWidget>
#include <QtGui>
#include <scalpmap.h>
#include <sbs2common.h>

class FirstScreen : public QWidget
{
    Q_OBJECT
public:
    explicit FirstScreen(QWidget *parent = 0);
    QString getUser();
    QString getDesc();
    int getCurrentDifficultyLevel();

private:
    QPushButton* startButton;
    QLineEdit* username;
    QLineEdit* description;

    QLabel* usernameLabel;
    QLabel* descLabel;

    //DEBUG
    QComboBox* difficultyComboBox;

    QLabel* headerLabel;

    ScalpMap* scalpmap;

    QString lastFile;
    QString lastUser;
    double lastError;
    int lastDifficultyLevel;


    int currentDifficultyLevel;

private:
    void readLastSessionFile();
    void calculateCurrentDifficultyLevel();


signals:
    void startGame();

public slots:
    void startPressed();
    void cqValue(QString channel, double value);
    void comboTextChanged(QString text);

};

#endif // FIRSTSCREEN_H
